package server;

/**
 * Representing a shared file with a filename and an owner
 */
public class File {
	String fileName;
	Client owner;
	/**
	 * Default constructor
	 * @param fileName name of file
	 * @param owner client sharing file
	 */
	public File(String fileName, Client owner){
		this.fileName = fileName;
		this.owner = owner;
	}
	
	/***
	 * Returns filename
	 */
	public String toString(){
		return fileName;
	}
	
	/**
	 * Gets Client object sharing file
	 * @return client sharing file
	 */
	public Client getOwner(){
		return owner;
	}
}
